import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/admin/notice/news',
    method: 'get',
    params
  })
}

export function delList($id) {
  return request({
    url: '/admin/notice/news/'+$id,
    method: 'DELETE',
  })
}
export function addForm(data) {
  return request({
    url: '/admin/notice/news',
    method: 'post',
    data
  })
}
export function addFormEditor(data,$id) {
  return request({
    url: '/admin/notice/news'+$id,
    method: 'put',
    data
  })
}
export function editorForm($id) {
  return request({
    url: '/admin/notice/'+$id,
    method: 'get',
  })
}
